import http from "../units/request";


//获取数据
export const getGoods = ()=>http.get('/product/get_product')

//删除数据
export const delhanlder = (id)=>http.get("/product/del_product",{
    params:{
        product_id:id
    }
})

//增加
export const addItem= (params)=>http.post("/product/add_product",{
    ...params
})

//编辑
export const editItem = (params)=>http.post("/product/update_product",{
   ...params
})
